package asa;

public class CharExpr extends Expr {
    public CharExpr( char value ) {
        this.value = value;
    }

    @Override
	public void genJava(PWInterface pw) {
    	genJava(pw, false);
    }

    @Override
	public void genJava(PWInterface pw, boolean putParenthesis ) {
        pw.print("'" + value + "'");
    }

    public char getValue() {
        return value;
    }

    private char value;
}